<%@ page pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
<head>
    <title>用户列表</title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script src="jquery-3.1.1.min.js"></script>
    <script src="events.js"></script>
</head>
<body>
    <h1>Forks example</h1>
    <hr/>
    <div>总用户数:${users.size()} <a href="user">新增</a></div>
    <table class="gridtable">
        <thead>
            <th>姓名</th>
            <th>年龄</th>
            <th>生日</th>
            <th>操作</th>
        </thead>
        <tbody>
	    <c:forEach var="user" items="${users}">
	        <tr>
	            <td>${user.name }</td>
	            <td>${user.age }</td>
	            <td>${user.birthday }</td>
	            <td><a href="javascript:;" onclick="getUser('${user.id}')">详情</a></td>   
	        </tr>
	    </c:forEach>
        </tbody>
    </table>
</body>
</html>